package com.ease.framework.workbench.viewer {
	import mx.core.IUIComponent;
	import mx.controls.Alert;

	public class Viewer implements IViewer {
		protected var _viewerControl:IUIComponent;

		public function Viewer(uiComponent:IUIComponent=null) {
			_viewerControl = uiComponent;
		}

		public function getControl():IUIComponent {
			if(_viewerControl==null){
				_viewerControl = createControl();
				configControl();
			}
			return _viewerControl
		}

		public function configControl():void {
			//_viewerControl.setViewer(this);
			//_viewerControl.initViewport();
		}

		public function createControl():IUIComponent {
			return null;
		}

	}
}